package com.qfedu.gytv.dao;

import com.qfedu.gytv.entity.Game;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * @description: 码起 自动生成代码
 * @author: my
 * @create: 2020-09-16 20:01:16
 */
public interface GameDao {
    @Insert("insert into tb_game (name,info,tid) values(#{name},#{info},#{tid})")
    int insert(Game game);

    @Delete("delete from tb_game where id = #{id}")
    int deleteById(int id);

    @Select("select * from tb_game")
    Game all();
}
